<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
      <ui:composition template="template.xhtml">
      <ui:define name="content">  
    
             
      <h:body>
          <form class="form-horizontal well">
                <fieldset>
        <h:form>
            
          <legend>Cadastro de Consulta</legend>
          <div class="control-group">
            <label class="control-label" for="input01">Nome do paciente:</label>
            <div class="controls">
                <h:inputText style="width:300px" value="#{pacienteMBean.findIdByNome}"/>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input02">Nome do medico:</label>
            <div class="controls">
                <h:inputText value="#{consultaMBeann.nomeMedico}"/>
            </div>
          </div>
         
          <div class="control-group">
            <label class="control-label" for="input10">Data da Consulta:</label>
            <div class="controls">
                <input type="text" class="input" id="input10" value="#{pacienteMBean.obj.nascimento}"/>
            </div>
          </div>
          
          <!-- PRECISA AJEITAR -->
          <div align="center">
              <h:commandButton value="Cadastrar" action="#{consultaMBean.cadastrar}"></h:commandButton>    
          </div>
              
        </h:form> 
             </fieldset>
            </form>
        
         </h:body>
      </ui:define>
   </ui:composition>
</html>